import request from '../utils/request';
import { wx } from '../utils/config'
;

const headers = { 'Content-Type': 'application/json' };

export function fetch(date) {
  const key = wx;

  return request('/api/publicNumber', {
    method: 'post',
    headers,
    body: JSON.stringify({ key, date }),
  });
}
export function wechatSummary(date) {
  const key = wx;

  return request('/api/weChat/queryUserSummary', {
    method: 'post',
    headers,
    body: JSON.stringify({ key, date }),
  });
}
